/* 
  Copyright (c) SilverLining 2015
  Date:    2016-1-7
  File:    bad_result_exception.cpp  
  Description: 

*/

#include "stdafx.h"

namespace m
{
	bad_result_exception::bad_result_exception()
		: ErrorCode(0),
		BaseType()
	{
	}

	bad_result_exception::bad_result_exception(bad_result_exception & other)
		: ErrorCode(other.ErrorCode),
		BaseType(other)
	{
	}

	bad_result_exception::bad_result_exception(const error::result & errorCode)
		: ErrorCode(errorCode),
		BaseType("An operation failed.")
	{
		DBGH(ErrorCode, L"Exception created.");
	}
		
	bad_result_exception::bad_result_exception(const error::result & errorCode, const char * const & message)
		: ErrorCode(errorCode),
		BaseType(message)
	{
	}
		
	bad_result_exception & bad_result_exception::operator=(const bad_result_exception & other)
	{
		BaseType::operator=(other);
		ErrorCode = other.ErrorCode;
		return *this;
	}
} // m